package com.derbysoft.nuke.configkeeper;

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper;
import com.derbysoft.nuke.configkeeper.repository.ConfigRepository;
import com.derbysoft.nuke.configkeeper.repository.DefaultConfigRepository;
import com.derbysoft.nuke.configkeeper.service.ConfigService;
import com.derbysoft.nuke.configkeeper.service.DefaultConfigService;
import com.google.inject.AbstractModule;

public class DefaultInjector extends AbstractModule {

    @Override
    protected void configure() {
        bind(DynamoDBMapper.class).toInstance(new DynamoDBMapper(DynamoFactory.getDynamoInstance()));
        bind(ConfigRepository.class).to(DefaultConfigRepository.class);
        bind(ConfigService.class).to(DefaultConfigService.class);
    }

}
